package com.ershi.spring.component.bf;

import com.ershi.spring.component.bf.Blue;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @author 二十
 * @since 2021/10/14 12:52 上午
 */
@Component
public class MyFactoryBean implements FactoryBean<Blue> {

	@Override
	public Blue getObject() throws Exception {
		return new Blue();
	}

	@Override
	public Class<?> getObjectType() {
		return Blue.class;
	}
}
